<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    console.time("damu")
    // var flag = false;
    outer:
    for(var i=2;i<=100000;i++){
        for(var j=2;j<=Math.sqrt(i);j++){
            if(i%j === 0){
                // flag = true;
                // break
                continue outer;
            }
        }

        // if(flag === false){
            console.log(i);
        // }
        // flag = false;
    }
    console.timeEnd("damu")
</script>
</html>